#pragma once

#include <memory>
#include "tinyrpc/base//timestamp.h"
#include <unistd.h>
#include <fcntl.h>
#include "AbstractChannel.h"
namespace TinyRPC{
class EventLoop;
// 对timerfd 的封装
// TimerChannel 应该有对应的eventloop
class TimerChannel : public AbstractChannel{
public:
    TimerChannel();
    void read();
    
    void setTime( TimeStamp time);
    void setEventLoop(EventLoop* loop);
private:
    EventLoop * m_ownerLoop;
};

}
